import { request } from '../../../request';

/** 新增压合程式选用规则 */
export function addPressProgramRule(data: any) {
  return request({
    url: '/qms/pressingProgramRule/add',
    method: 'POST',
    data
  });
}

/** 修改压合程式选用规则 */
export function updatePressProgramRule(data: any) {
  return request({
    url: '/qms/pressingProgramRule/update',
    method: 'POST',
    data
  });
}

/** 删除压合程式选用规则 */
export function deletePressProgramRule(data: any) {
  return request({
    url: '/qms/pressingProgramRule/delete',
    method: 'post',
    data
  });
}

/** s审核压合程式选用规则 */
export function auditPressProgramRule(data: any) {
  return request({
    url: '/qms/pressingProgramRule/audit',
    method: 'POST',
    data
  });
}

/** 撤审压合程式选用规则 */
export function cancelAuditPressProgramRule(data: any) {
  return request({
    url: '/qms/pressingProgramRule/withdraw',
    method: 'POST',
    data
  });
}
